import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export type Role = {
  roleId: string;
  roleName: string;
  roleCode: string;
  roleDesc: string;
  isSys: number;
  isOpen: number;
  creator: string;
  creatorId: Array<string>;
  createdAt: string;
  updatedAt: string;
};

export const getPublicRoles = () => {
  return http.request<Array<Role>>("get", baseUrlApi("getPublicRoles"));
};
